<extend name="../Public/base" />
<block name="title">邮件设置</block>
<block name="body">
    <form class="form form-horizontal" id="form-config-add" method="post">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">发件人姓名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" datatype="*" nullmsg="发件人姓名不能为空" value="{$detail.EMAIL_RENAME}" name="EMAIL_RENAME">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">设置发送邮箱：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" datatype="*" nullmsg="发送邮箱不能为空" value="{$detail.EMAIL_NAME}" name="EMAIL_NAME">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">SMTP 服务器：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" datatype="*" nullmsg="SMTP 服务器不能为空" value="{$detail.EMAIL_SMTP}" name="EMAIL_SMTP">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">连接方式：</label>
            <div class="formControls col-xs-8 col-sm-9">
                 <span class="select-box wp30">
                    <select class="select" name="EMAIL_SECURE">
                        <option value="" <if condition="$detail.EMAIL_SECURE eq ''">selected</if>>普通连接方式</option>
                        <option value="ssl" <if condition="$detail.EMAIL_SECURE eq 'ssl'">selected</if>>SSL连接方式</option>
                        <option value="tls"  <if condition="$detail.EMAIL_SECURE eq 'tls'">selected</if>>TLS连接方式</option>
                    </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">SMTP 服务器端口：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" datatype="*" nullmsg="SMTP 服务器端口不能为空" value="{$detail.EMAIL_PORT}" name="EMAIL_PORT">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">邮箱登陆帐号：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text"  class="input-text" datatype="*" nullmsg="SMTP 邮箱登陆帐号不能为空" value="{$detail.EMAIL_USERNAME}" name="EMAIL_USERNAME">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">邮箱登陆密码：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="password"  class="input-text" value="{$detail.EMAIL_PASSWORD}" name="EMAIL_PASSWORD">
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <input type="submit" class="btn btn-success radius" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                <a href="javascript:;" onclick="layer_show('测试发送邮件','{:U("mailTest")}','800','480')" class="btn btn-primary radius">&nbsp;&nbsp;测试发送邮件&nbsp;&nbsp;</a>

            </div>
        </div>
    </form>
</block>